// httpsql.h: interface for the CLHttpSql class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_HTTPSQL_H__28110797_525B_4BC7_8CBD_2D7DD3CA5150__INCLUDED_)
#define AFX_HTTPSQL_H__28110797_525B_4BC7_8CBD_2D7DD3CA5150__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "sql.h"
#include "http.h"	// Added by ClassView
#include "str.h"	// Added by ClassView


class CLHttpSql : public CLSql  
{
public:
	int init(const CLConfig& conf);
	CLStr m_db;
	CLStr m_path;
	CLHttp m_http;
	int init(LPCSTR server,LPCSTR host,LPCSTR path,LPCSTR db,int port=80,int secs=10);
	int query(LPCSTR sql,CLStr& result,int with_field=0);
	CLHttpSql();
	CLHttpSql(LPCSTR conf_file) { init(conf_file); }
	virtual ~CLHttpSql();

};

#endif // !defined(AFX_HTTPSQL_H__28110797_525B_4BC7_8CBD_2D7DD3CA5150__INCLUDED_)
